package com.smarthospital.dao.mapper;

import com.smarthospital.entity.pojo.Report;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReportDao {

    int insertSelective(@Param("pojo") Report pojo);

    int insertList(@Param("pojos") List<Report> pojo);

    int update(@Param("pojo") Report pojo);

    List<Report> querMyReports(@Param("userId") String userId);

    List<Report> selectByHospitalAndReportId(@Param("userId") String userId,@Param("list")List<Report> list);

    List<Report> selectByHospitalAndUserId(@Param("hospital")String hospital, @Param("userId")String userId);
}
